package com.air.dao;

import com.air.entity.Flight;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface FlightMapper {

    List<Flight> selecFlight(@Param("takeOffCity") String takeoff,@Param("landingCity") String landing,@Param("firstDate") Date firstDate,@Param("lastDate") Date lastDate);

    Flight selecFlightById(String id);

    int getFirstPriceById(int flightId);

    int getEconoPriceById(int flightId);

    int insert(List<Flight> flights);
}
